<template>
  <div>
    <div class="weekend-title">周末去哪儿</div>
    <ul>
      <li class="item border-bottom" v-for="item of list" :key="item.id">
        <img class="item-img" :src="item.imgUrl">
        <div>
          <p class="item-title">{{item.title}}</p>
          <p class="item-desc">{{item.desc}}</p>
        </div>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: 'HomeWeekend',
  props: {
    list: Array
  }
}
</script>

<style lang="stylus" scoped>
  @import '~styles/mixins.styl'
  .weekend-title
    line-height .8rem
    background #eee
    text-indent .2rem
  .item
    overflow hidden
    height 4rem
    background #FFFFFF
    border-bottom solid #eee .1rem
    .item-img
      width 100%
      height 2.6rem
    .item-title
      display inline-block
      line-height .54rem
      font-size .32rem
      padding-left .2rem
      padding-top  .2rem
      ellipsis()
    .item-desc
      display block
      line-height .4rem
      color #ccc
      padding-left .2rem
      ellipsis()
</style>
